<?php
namespace app\admin\model;

class Device extends Base
{
    // protected $name = 'device';

    //设备列表
    public function getAll()
    {
        $data=$this
            ->field('id,sn,name,sim,remark,device_group_id,franchiser_id,actived_at,related_at,
                        imei,iccid,sn_id,user_id,is_record,is_cloud,state,device_model_id,
                        created_at,updated_at,worktime,sim')
            //->where("deleted_at","exp","is null")
           // ->select()
        ;
        //var_dump($data);exit;
        return $data;
    }
}